package org.example.openfeign.consumer.feignapi;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

// 括号中为目标服务名
@FeignClient("nacos-feign-provider-service")
public interface ProviderClient {

    // 目标方法的url
    @GetMapping("provider/test")
    String hello();

}
